# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=d-spy
pkgver=47.0
pkgrel=0
pkgdesc="Like d-feet, but written in C and blisteringly fast"
url="https://gitlab.gnome.org/GNOME/d-spy"
license="GPL-3.0-or-later"
arch="all !s390x !riscv64" # limited by gtk4.0 and libadwaita
makedepends="meson desktop-file-utils glib-dev gtk4.0-dev libadwaita-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/d-spy/${pkgver%.*}/d-spy-$pkgver.tar.xz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
da5275691ab29ced7a125bf9411a8bae4388ea6f940c8e4f5a0764e18e9d1909abfe4d5c13e4cbd3405d106929bbbf6ba15f45c509d3396906311f5d453b2df2  d-spy-47.0.tar.xz
"
